<meta charcode="utf-16">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<canvas></canvas
<body>
<script>
test(function(t) {
    var canvas = document.querySelector("canvas");
    var context = canvas.getContext("2d");

    var testStr1 = 'a' + '\u0009' + 'b' + '\u000A' + 'c' + '\u000C' + 'd' + '\u000D' + 'e';
    var testStr2 = 'a' + '\u0020' + 'b' + '\u0020' + 'c' + '\u0020' + 'd' + '\u0020' + 'e';

    context.font = "12px Arial";
    context.fillText(testStr1, 0, 10);
    context.fillText(testStr2, 0, 30);

    testStr1Width = context.measureText(testStr1).width;
    testStr2Width = context.measureText(testStr2).width;

    assert_true(testStr1Width == testStr2Width);
}, 'Test canvas text characters space.');
</script>
</body>
